export const ACCESS_TOKEN = 'Access-Token'
export const USER_NAME = 'login_username'
export const USER_INFO = 'login_user_info'
export const NAV_BAR_COLOR = 'bg-gradual-blue'
export const APP_ROUTE = 'app_route_list'
export const APP_CONFIG = 'app_config'
export const X_TENANT_ID = 'X-Tenant-Id'
export const X_Low_App_ID = 'X-Low-App-ID'
export const TENANT_LIST = 'tenant_list'
export const ROUTE_PARAMS = 'cacheRouteParams'
export const HOME_PAGE = '/pages/index/index'
/**
 * 组件名称前缀
 */
export const COMP_NAME_PREFIX = 'jeecg-drag'
// 首页配置项缓存时间10分钟
export const HOME_CONFIG_EXPIRED_TIME = 10 * 60
export const phone = '---'
export const email = '---'
export const company = '---'

const STORAGE_OPTIONS = {
  namespace: 'pro__', // key prefix
  name: 'ls', // name variable Vue.[ls] or this.[$ls],
  storage: 'local', // storage name session, local, memory
}

export default STORAGE_OPTIONS
// 类型条件
export const conditionObj = {
  input: [
    { label: '包含', value: 'like' },
    { label: '以...开始', value: 'right_like' },
    { label: '以...结尾', value: 'left_like' },
    { label: '在...中', value: 'in' },
  ],
  number: [
    { label: '大于', value: 'gt' },
    { label: '大于等于', value: 'ge' },
    { label: '小于', value: 'lt' },
    { label: '小于等于', value: 'le' },
  ],
  date: [
    { label: '大于', value: 'gt' },
    { label: '大于等于', value: 'ge' },
    { label: '小于', value: 'lt' },
    { label: '小于等于', value: 'le' },
  ],
  select: [],
  checkbox: [{ label: '多词匹配', value: 'elemMatch' }],
}
/**
 * 颜色板
 * classic：经典
 * technology：科技
 * business：商务
 * botany：植物
 * natural：自然
 * colour：彩色
 */
export const colorPanel = {
  classic: [
    '#64b5f6',
    '#4db6ac',
    '#ffb74d',
    '#e57373',
    '#9575cd',
    '#a1887f',
    '#90a4ae',
    '#4dd0e1',
    '#81c784',
    '#ff8a65',
  ],
  technology: [
    '#3a5b84',
    '#4d6e98',
    '#7594b9',
    '#bfd7f2',
    '#18619f',
    '#408aca',
    '#5ea8e9',
    '#81c3fc',
    '#71a5cb',
    '#a1cae4',
  ],

  business: [
    '#ccedf7',
    '#b9dcf0',
    '#12a0e7',
    '#0663a4',
    '#458890',
    '#97d9cd',
    '#4bb8bf',
    '#20899c',
    '#f44336',
    '#a2c7d9',
  ],

  botany: [
    '#34b392',
    '#4ac2a6',
    '#8ed1c0',
    '#ccdec6',
    '#61bdb5',
    '#7993a1',
    '#93a889',
    '#5e8d83',
    '#115040',
    '#bcc5b4',
  ],

  natural: [
    '#85cacd',
    '#a7d676',
    '#fee159',
    '#fbc78e',
    '#ef918b',
    '#a9b5ff',
    '#e7daca',
    '#fc803a',
    '#fea1ac',
    '#c2a3cd',
  ],

  colour: [
    '#fddb9c',
    '#f9ae91',
    '#f59193',
    '#d47f97',
    '#bd86a6',
    '#f595a1',
    '#624772',
    '#fe7156',
    '#ffbda3',
    '#877fa8',
  ],
}
// 所有条件
export const allCondition = [
  { label: '包含', value: 'like' },
  { label: '以...开始', value: 'right_like' },
  { label: '以...结尾', value: 'left_like' },
  { label: '在...中', value: 'in' },
  { label: '大于', value: 'gt' },
  { label: '大于等于', value: 'ge' },
  { label: '小于', value: 'lt' },
  { label: '小于等于', value: 'le' },
  { label: '多词匹配', value: 'elemMatch' },
  { label: '等于', value: 'eq' },
  { label: '不等于', value: 'ne' },
  { label: '为空', value: 'empty' },
  { label: '不为空', value: 'not_empty' },
]
// 仪表盘组件
export const compList = [
  'JBar',
  'JStackBar',
  'JMultipleBar',
  'JNegativeBar',
  'JProgress',

  'JLine',
  'JMultipleLine',
  'DoubleLineBar',

  'JPie',
  'JRing',

  'JFunnel',
  'JPyramidFunnel',

  'JRadar',
  'JCircleRadar',

  'JGauge',
  'JColorGauge',

  'JScatter',
  'JBubble',

  'JDragEditor',
  'JCarousel',
  'JIframe',
  'JNumber',
  'JCustomButton',
  'JPivotTable',

  'JBubbleMap',
  'JBarMap',
  'JHeatMap',
]
// 不包含操作的组件
export const noActionList = ['JCustomButton', 'JIframe', 'JCarousel', 'JDragEditor']

// 系统字段
export const systemFields = [
  {
    dataIndex: 'create_time',
    key: 'create_time',
    title: '创建时间',
    type: 'date',
    width: 200,
  },
  {
    dataIndex: 'create_by',
    key: 'create_by',
    title: '创建人',
    width: 150,
  },
  {
    dataIndex: 'update_time',
    key: 'update_time',
    title: '修改时间',
    type: 'date',
    width: 200,
  },
  {
    dataIndex: 'update_by',
    key: 'update_by',
    title: '修改人',
    width: 150,
  },
]

// 换油订单状态
export const orderStatus = [
  { label: '待提交', value: 'A' },
  { label: '待分配工厂', value: 'B' },
  { label: '待接单', value: 'C' },
  { label: '已拒绝', value: 'D' },
  { label: '运输中', value: 'E' },
  { label: '待质检', value: 'F' },
  { label: '不合格退货', value: 'G' },
  { label: '待入库', value: 'H' },
  { label: '待确认质检', value: 'I' },
  { label: '不认可质检结果', value: 'J' },
  { label: '待确认得油结果', value: 'K' },
  { label: '不认可得油结果', value: 'L' },
  { label: '待付款', value: 'M' },
  { label: '待确认到账', value: 'N' },
  { label: '已完成', value: 'O' },
  { label: '已取消', value: 'P' },
]

// 原料类型
export const materialTypes = [
  { label: '茶籽', value: 'A' },
  { label: '茶果', value: 'B' },
]

// 提油订单状态
export const extractOrderStatus = [
  { label: '待提交', value: 'A' },
  { label: '待生产入库', value: 'B' },
  { label: '待发货', value: 'C' },
  { label: '待确认收货', value: 'D' },
  { label: '待确认自提', value: 'E' },
  { label: '待暂存入库', value: 'F' },
  { label: '已完成', value: 'G' },
  { label: '待付款', value: 'H' },
]

// 提油类型
export const extractTypes = [
  { label: '原油', value: 'A' },
  { label: '成品油', value: 'B' },
]
// 提油方式
export const extractMethods = [
  { label: '邮寄', value: '1' },
  { label: '自提', value: '2' },
  { label: '暂存在工厂', value: '3' },
  { label: '一件代发给客户', value: '4' },
]

// 是或否
export const yesOrNo = [
  { label: '是', value: 'Y' },
  { label: '否', value: 'N' },
]
